<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui">
    <div class="ui-g">
        <div class="ui-g-12">
            <h3><b>基本信息</b></h3>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="订单编号"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.id}" readonly="true"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="用户姓名"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.petname}" readonly="true"/>
        </div>
        
        <div class="ui-g-2">
            <p:outputLabel value="手机号码"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.mobnum}" readonly="true"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="身份证号码"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.idCard}" readonly="true"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="申请金额"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.amount}" readonly="true"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="合作方名称"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="点融" rendered="#{loanApiOrderInfoBean.$.type == 11}" readonly="true"/>
            <p:inputText value="乐贷款" rendered="#{loanApiOrderInfoBean.$.type == 17}" readonly="true"/>
        </div>
        
        <div class="ui-g-2">
            <p:outputLabel value="订单状态"/>
        </div>
        <div class="ui-g-4">
			<p:inputText value="订单初始化"
				rendered="#{loanApiOrderInfoBean.$.status == 1}" readonly="true" />
			<p:inputText value="验证账户失败"
				rendered="#{loanApiOrderInfoBean.$.status == 2}" readonly="true" />
			<p:inputText value="订单审核中"
				rendered="#{loanApiOrderInfoBean.$.status == 3}" readonly="true" />
			<p:inputText value="合作方取消"
				rendered="#{loanApiOrderInfoBean.$.status == 4}" readonly="true" />
			<p:inputText value="订单初审成功"
				rendered="#{loanApiOrderInfoBean.$.status == 5}" readonly="true" />
			<p:inputText value="订单审核成功"
				rendered="#{loanApiOrderInfoBean.$.status == 6}" readonly="true" />
			<p:inputText value="合作方退回"
				rendered="#{loanApiOrderInfoBean.$.status == 7}" readonly="true" />
			<p:inputText value="签约成功"
				rendered="#{loanApiOrderInfoBean.$.status == 8}" readonly="true" />
			<p:inputText value="订单提交失败"
				rendered="#{loanApiOrderInfoBean.$.status == 9}" readonly="true" />
			<p:inputText value="签约失败"
				rendered="#{loanApiOrderInfoBean.$.status == 10}" readonly="true" />
			<p:inputText value="验证成功"
				rendered="#{loanApiOrderInfoBean.$.status == 11}" readonly="true" />
			<p:inputText value="已放款"
				rendered="#{loanApiOrderInfoBean.$.status == 12}" readonly="true" />
		</div>
        
        <div class="ui-g-2">
            <p:outputLabel value="是否授权"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="否" rendered="#{loanApiOrderInfoBean.$.authorize != 1}" readonly="true"/>
            <p:inputText value="是" rendered="#{loanApiOrderInfoBean.$.authorize == 1}" readonly="true"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="授权时间"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.authTime}" readonly="true"/>
        </div>
        
        <div class="ui-g-2">
            <p:outputLabel value="申请时间"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.ctime}" readonly="true"/>
        </div>

        <div class="ui-g-12">
            <h3><b>合作方返回信息</b></h3>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="还款期限"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.peroid}" readonly="true"/>
        </div>
        
        <div class="ui-g-2">
            <p:outputLabel value="放款金额"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.loanAmount}" readonly="true"/>
        </div>
        
        <div class="ui-g-2">
            <p:outputLabel value="放款时间"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.loanTime}" readonly="true"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="结算金额"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.settleAmount}" readonly="true"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="合作方订单编号"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.transactionId}" readonly="true"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="订单回调时间"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.transactionTime}" readonly="true"/>
        </div>
        
        <div class="ui-g-2">
            <p:outputLabel value="合作方跳转URL"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.sourceUrl}" readonly="true"/>
        </div>

        <div class="ui-g-2">
            <p:outputLabel value="合作方用户注册编号"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.borrowerId}" readonly="true"/>
        </div>
        
        <div class="ui-g-2">
            <p:outputLabel value="合作方用户借款编号"/>
        </div>
        <div class="ui-g-4">
            <p:inputText value="#{loanApiOrderInfoBean.$.loanAppId}" readonly="true"/>
        </div>
    </div>
</ui:composition>